package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * Hl7病人事件表
 * </p>
 *
 * @author zqb
 * @date 2024-07-15 14:36:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_hl7_event")
public class BHl7Event extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 住院号
     */
    @TableField(value = "hospital_number", condition = LIKE)
    @Schema(description = "住院号")
    private String hospitalNumber;
    /**
     * 病人识别号
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "病人识别号")
    private String patientIdent;
    /**
     * 病区号
     */
    @TableField(value = "ward_ident", condition = LIKE)
    @Schema(description = "病区号")
    private String wardIdent;
    /**
     * 当前科室编号
     */
    @TableField(value = "dept_ident", condition = LIKE)
    @Schema(description = "当前科室编号")
    private String deptIdent;
    /**
     * 当前科室名称
     */
    @TableField(value = "dept_name", condition = LIKE)
    @Schema(description = "当前科室名称")
    private String deptName;
    /**
     * 病床号
     */
    @TableField(value = "bed_number", condition = LIKE)
    @Schema(description = "病床号")
    private String bedNumber;
    /**
     * 事件发生时间
     */
    @TableField(value = "event_time", condition = EQUAL)
    @Schema(description = "事件发生时间")
    private LocalDateTime eventTime;
    /**
     * 事件类型1入院2取消入院3出院4取消出院5入科6取消入科 7位置转移 8 出科 9做手术 10 分诊 11 预出院
     */
    @TableField(value = "event_type", condition = EQUAL)
    @Schema(description = "事件类型1入院2取消入院3出院4取消出院5入科6取消入科 7位置转移 8 出科 9做手术 10 分诊 11 预出院")
    private Integer eventType;
    /**
     * 
     */

    /**
     * 
     */
    @TableField(value = "rk_id", condition = EQUAL)
    @Schema(description = "")
    private Long rkId;



}
